#定义请求类
from pydantic import BaseModel,Field

class BaseChat(BaseModel):
    """
    基础聊天类
    """
    chat_id: str = Field(..., description="会话id",alias="chatId")
    character_id: str = Field(..., description="角色id",alias="characterId")
    message: str = Field(..., description="用户输入的文本")
    url:str = Field(..., description="请求的url")


class ChatAndSpeechRequest(BaseModel):
    client_id: str = Field(..., description="websocket客户端id")
    chat_id: str = Field(..., description="会话id",alias="chatId")
    character_id: str = Field(..., description="角色id",alias="characterId")
    message: str = Field(..., description="用户输入的文本")
    url:str = Field(..., description="请求的url")